﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Repeater.aspx.cs" Inherits="EmployeesWithGridView.Repeater" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Repeater </title>
    <link rel="Stylesheet" href="Site.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>    
        <asp:repeater ID="employeesRepeater" runat="server" >
            <HeaderTemplate> 
                <div id="header">
                   <h3>Employees</h3>
                </div>
            </HeaderTemplate>
            <ItemTemplate>
            <div class="normal">
                Full Name: <b><%# Eval("FirstName") + " " + Eval("LastName")%></b>
                <br/>
                City: <%# Eval("City")%>
                <br/>
                Address: <%# Eval("Address")%>
             </div>
            </ItemTemplate>
            <AlternatingItemTemplate>
            <div class="alternating">
                Full Name: <b><%# Eval("FirstName") + " " + Eval("LastName")%></b>
                <br/>
                City: <%# Eval("City")%>
                <br/>
                Address: <%# Eval("Address")%>
            </div>
            </AlternatingItemTemplate>
        </asp:repeater>
    </div>
    </form>
</body>
</html>
